<%= form_for @profile, :html => {:class => 'form-horizontal'} do |f| %>
<fieldset>
  <div class="form-group">
    <!--%= f.hidden_field %-->
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Name</label>
    <div class="col-sm-8">
      <%= f.text_field :name, :class=>"form-control", :placeholder=>"Profile name" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Gender</label>
    <div class="col-sm-8">
      <% sex = ['Male', 'Female'] %>
      <%= f.select(:gender, sex.collect {|s| [s.to_s,s.to_s]}, {:include_blank => "Select gender"}, {:class => "form-control"} ) %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Birth</label>
    <div class="col-sm-8">
      <div class="input-group date" id="datepicker-dob">
        <%= f.text_field :born, :class=>"form-control", :placeholder=>"yyyy-mm-dd" %>
        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Weight</label>
    <div class="col-sm-8">
      <%= f.text_field :weight, :class=>"form-control", :placeholder=>"In lbs" %>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Height</label>
    <div class="col-sm-8">
      <div class="form-group col-md-6" style="margin-bottom:0px;">
        <%= f.text_field :height_feet, :class=>"form-control", :placeholder=>"Feet" %>
      </div>
      <div class="form-group col-md-6">
        <%= f.text_field :height_inches, :class=>"form-control", :placeholder=>"Inches" %>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-5 col-sm-offset-2">
      <%= f.submit "Create Profile", :class=>"btn btn-lg btn-success" %>
    </div>
  </div>
</fieldset>

<% end %>
